<?php

/*
 * Author: Dimitris
 * ERestores a Category in Database without checking the category owner
 */

function admin_restoreCategory($categoryId)
{
    if ($categoryId < 0)
    {
        return BL_ENABLE_CATEGORY;
    }

    $err_no = DB_restoreCategory($categoryId);

    return $err_no >= 0 ? BL_OK : BL_ENABLE_CATEGORY;
}

?>
